package com.zdya.bigloghandler;

import java.io.BufferedReader;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;

public class CountFileLines {

    public static void main(String[] args) throws IOException {
        try(BufferedReader br = Files.newBufferedReader(Paths.get("C:\\Users\\ZHY\\Desktop\\PurePro_111.log"), StandardCharsets.UTF_8)){
            int lineNum = 0;
            while(br.readLine() != null){
                lineNum++;
            }
            System.out.println(lineNum);
        }
    }

}
